package com.fauks.gmall.managerweb.controller;

import com.fauks.gmall.bean.PmsSkuInfo;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
public class SkuController {

    @RequestMapping("saveSkuInfo")
    public String saveSkuInfo(@RequestBody PmsSkuInfo pmsSkuInfo) {
        System.out.println(pmsSkuInfo.getSpuId());
        pmsSkuInfo.setProductId(pmsSkuInfo.getSpuId());
        return "success";
    }
}
